{template 'header'}
<!--主体部分-->
<div class="layout960 fn-clear mt10">
	<!--{*筛选页左侧*}-->
	<div class="auto-filter-left fn-left">
		{template 'part_BrandList','auto'}
	</div>
	<!--{*筛选页右侧 start*}-->
	<div class="auto-filter-right fn-right">
		<!--{*搜索*}-->
		{template 'part_KwSearch','auto'}

		<!--{*当前位置 start*}-->
		<div class="auto-loc">
			<a href="{SITE_URL}">讯都车网</a>&nbsp;&gt;&nbsp;
			<a href="{url('auto/index')}">车型库</a>&nbsp;&gt;&nbsp;
			<a href="{url('auto/search')}">筛选</a>
		</div>
		<!--{*当前位置 end*}-->

		<!--{*筛选项 start*}-->
		<div class="cat-property">
			{loop $params $param}
			{if $param[selection]}
			<div class="cat-section fn-clear">
				<div class="cat-hd fn-left">{$param[desc]}</div>
				<ul class="fn-left">
					<li {if !$search->getSel($param[short])}class="selected"{/if}><a href="{url('auto/search', $param['short'].'=0')}">不限</a></li>
					{loop $param[selection] $r}
					{if $param[short]=='l'} {*新能源级别添加*}
					{if $r[parentid]==0}
					{php $lcount++}
					{/if}
					<li
					{if $search->getSel($param[short])==$r[arid]}class="selected"{/if}>
						<a href="{url('auto/search', $param['short'].'='.$r['arid'])}">{$r['name']}</a>
					</li>
					{if $lcount ==3}
					<li{if in_array($search->getSel('e'), array(432,428,429,430,431,432))} class="selected"{/if}><a href="{url('auto/search', 'e=432')}">新能源车</a></li>
					{/if}
					{else}
					<li {if $search->getSel($param[short])==$r[arid]}class="selected"{/if}><a href="{url('auto/search', $param['short'].'='.$r['arid'])}">{$r['name']}</a></li>
					{/if}
					{/loop}
				</ul>
			</div>
            <script>
                seajs.use(['$','lm-util'],function($,util){
                    $(".jsGo").click(function(){
                        var p = $(this).attr("data-param");
                        var v = $(this).attr("data-value");
                        util.go(p,v,'search.php');
                    });
                })
            </script>
			{/if}
			{/loop}
		</div>
	<!--筛选项 end-->

	<!--乘用车推荐列表 start-->
	<div id="passenger-car" class="auto-rec-list auto-right-border">
		<div class="auto-rec-list-hd fn-clear">
			<h3 class="fn-left">乘用车推荐</h3>
			<ul class="fn-left">
				<li class="selected">新车</li>
				<li>热门</li>
			</ul>
		</div>
		<div class="auto-rec-list-imgs">
			<ul>
				{loop $passengerHot $car}
				<li>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
				</li>
				{/loop}
			</ul>
		</div>
		<div class="auto-rec-list-imgs fn-hide">
			<ul>
				{loop $passengerNew $car}
				<li>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
				</li>
				{/loop}
			</ul>
		</div>
	</div>
	<!--乘用车推荐列表 end-->
	<!--商用车推荐列表 start-->
	<div id="commercial-car" class="auto-rec-list auto-right-border">
		<div class="auto-rec-list-hd fn-clear">
			<h3 class="fn-left">商用车推荐</h3>
			<ul class="fn-left">
				<li class="selected">新车</li>
				<li>热门</li>
			</ul>
		</div>
		<div class="auto-rec-list-imgs">
			<ul>
				{loop $commercialNew $car}
				<li>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
				</li>
				{/loop}
			</ul>
		</div>
		<div class="auto-rec-list-imgs fn-hide">
			<ul>
				{loop $commercialHot $car}
				<li>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
				</li>
				{/loop}
			</ul>
		</div>
	</div>
	<!--商用车推荐列表 end-->
	<!--{*房车推荐列表 start*}-->
	<div id="touring-car" class="auto-rec-list auto-right-border">
		<div class="auto-rec-list-hd fn-clear">
			<h3 class="fn-left">房车推荐</h3>
			<ul class="fn-left">
				<li class="selected">新车</li>
				<li>热门</li>
			</ul>
		</div>
		<div class="auto-rec-list-imgs">
			<ul>
				{loop $rvNew $car}
				<li>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
					<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
				</li>
				{/loop}
			</ul>
		</div>
		<div class="auto-rec-list-imgs fn-hide">
            <ul>
			{loop $rvHot $car}
			<li>
				<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank"><img src="{Picture::thumb($car['thumb'], 120,80)}"alt="{$val['name']}"/></a>
				<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car['name']}">{$car['name']}</a>
			</li>
			{/loop}
            </ul>
		</div>
	</div>
    <script>
        seajs.use(['lm-util'],function(util){
            function recTab(id){
                if($("div"+id+"-car").length<=0) return;
                util.tab("mouseover","div"+id+"-car>div.auto-rec-list-hd", "selected", "div"+id+"-car>div.auto-rec-list-imgs");
            }
            recTab("#passenger");//乘用车
            recTab("#commercial");//商用车
            recTab("#touring");//房车
        });
    </script>
	<!--{*房车推荐列表 end*}-->
        {template 'footer', 'auto'}
	</div>
<!--筛选页右侧 end-->
</div>
</body>
</html>
